Serial I/O device identifies itself to a computer through a serial interface during power on reset then it is being configured by the computer

ABSTRACT

A self-configuring startup procedure for communications devices, including telecommunications adapters, provides unambiguous identification of the telecommunications adapter, or other communications device, connected to a serial port. The procedure does not interfere with the operation of other existing I/O devices that might be connected to the serial port, such as network, MIDI, or other serial I/O devices. The I/O device is connected to a computer through a serial interface and a serial link. When the I/O device exits a reset state, the I/O device sends across the serial link to the computer a &#34;beacon&#34; signal identifying the I/O device. In particular, during the beacon phase, the I/O device communicates identification and configuration parameters. Preferably, the beacon phase may be instigated by the computer using the same serial-link communications channel.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to serial dam communications and more particularly to identification and configuration of serially-connected communications devices.

2. State of the Art

In computer design and engineering, whereas technical benchmarks were once the prime differentiator among competing products, more recently, ease of use has assumed singular importance. Considerable research and development effort has been focused on the human engineering aspects of computers, particularly the user interface. Graphical user interfaces have now become the de facto industry standard.

Despite these developments, telecommunications has remained, at least to the uninitiated, a daunting aspect of computing. To the novice computer user, the numerous specifications required to establish a high-speed connection present an often insuperable challenge. At the same time, the range of available telecommunications services is rapidly expanding, offering, for example, seamless remote network access, online services with audio feedback, and transparent reception of faxes and voice messages. In order to provide easy, affordable access to these and other emerging telecommunications services, a need exists for high-performance, low-cost telecommunications platforms that support global fax, data and voice data streams in an intuitive way.

In the past, in order to enable a computer to operate with a particular communications device ("telecom adapter") attached to the serial port, the computer user has had to identify to the computer, and then configure, the communications device. If the user did not configure the telecom adapter properly, communications could not be established. Also, dedicated hardware circuitry has typically been required to exchange device identification between the telecom adapter and the host computer during the configuration phase. This special-purpose configuration hardware (including, for example, DIP switches, ID ROMs or ID wheels, and jumpers for circuit boards) contributes to the cost of the telecom adapter.

SUMMARY OF THE INVENTION

The present invention, generally speaking, provides a self-configuring startup procedure for communications devices, including telecommunications adapters. The procedure provides unambiguous identification of the telecommunications adapter, or other communications device, connected to a serial port, and does not interfere with the operation of other existing I/O devices that might be connected to the serial port, such as network, MIDI, or other serial I/O devices.

In accordance with one embodiment of the invention, an I/O device is connected to a computer through a serial interface and a serial link. When the I/O device exits a reset state, the I/O device sends across the serial link to the computer a "beacon" signal identifying the I/O device. In particular, during the beacon phase, the I/O device communicates identification and configuration parameters. Preferably, the beacon phase may be instigated by the computer using the same serial-link communications channel.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention may be further understood from the following description in conjunction with the appended drawings. In the drawings:

FIG. 1 is a simplified block diagram of a computer system in which the present invention may be used;

FIG. 2A and 2B are block diagrams of examples of possible communications devices that may be used in the computer system of FIG. 1;

FIG. 3A is a diagram of a beacon signal sent by the communications device to the computer system;

FIG. 3B is a diagram of a beacon acknowledge signal sent by the computer system to the communications device;

FIG. 3C is a diagram of a beacon completion signal sent by the communications device to the computer system;

FIG. 4 is a diagram of the flags byte of the signals of FIGS. 3B and C; and

FIG. 5 is a block diagram illustrating mapping of a pod ID to a software pod handler.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

The computer system of FIG. 1 is exemplary of a wide variety of computer systems, both large and small, in which serially-connected communications devices may be found and in which the present self-configuring startup procedure may be used to advantage. An address bus and a data bus connect a central processing unit (CPU) to read-only memory (ROM), and, through bus transceivers, to random-access memory (RAM) and to a UART (universal asynchronous receiver transmitter) or a USART (universal synchronous/asynchronous receiver transmitter) that provides an interface to the serial I/O port(s). A telecom adapter is shown connected to the serial port.

Referring to FIG. 2A, the physical interface through which the telecom adapter is connected to the host computer system may be, for example, a mini-DIN 8 connector connected to a serial cable. The serial port conforms to the EIA (Electronics Industry Association) standard RS-422. Differential transmission is used to provide greater immunity to noise and interference, increasing reliability over longer distances. Two receive signals, RX+ and RX- are modulated against one another and input to the serial port. Two transmit signals, TX+ and TX-, are modulated against one another and input to the telecom adapter. Power (+5 V) and Ground (GND) are provided from the serial port to the telecom adapter. The telecom adapter provides a clock signal (HSKi) having a frequency of, for example, 2.048 Mhz to the serial port. The host computer provides to the telecom adapter a control signal on a handshake output line, often referred to as HSKo or DTR. This control signal can be used to prompt the device to send its beacon signal. Alternatively, a byte or sequence of data bytes may be sent from the computer to the I/O device to prompt the device to send its beacon signal.

The telecom adapter may be an analog ("plain-old telephone service," or POTS) telecom adapter. In the analog telecom adapter, an application-specific integrated circuit (ASIC) realizes a state machine that exchanges identification and configuration information with the host computer during the self-configuring startup procedure, or beacon phase. Alternatively, the telecom adapter may be an Integrated Services Digital Network (ISDN) digital adapter, or may be of any one of numerous other types.

The beacon phase is entered upon power up, or may be forced by the computer's holding the Reset (HSKo) line active (high) for more than 15 us. The computer will never hold the HSKo line active for longer than 50 ms. This action prevents other devices that might at various times be connected to the serial port from possibly going active for a long period of time. Some serial devices interpret the HSKo signal as a DTR (Data Terminal Ready) signal and may in response perform automatic operations when the device goes active, such as dial a phone number. Limiting the HSKo active period to 50 ms prevents these problems.

When the telecom adapter (or telecommunications "pod") powers up or receives a reset pulse, it will send to the host computer a beacon signal that is used to identity the type of telecom adapter and to synchronize the computer and the telecom adapter. Referring to FIG. 3A, the beacon signal consists of a seven-byte sequence, the first two bytes of which are the pattern 0×A5, 0×5A. The following two bytes form a Pod ID, a 16-bit quantity identifying the type of serial device which is attached. The Pod ID can be mapped to a specific Pod Handler software module used to handle communications with this type of device, allowing the appropriate pod handler to be identified and loaded in the computer as illustrated in FIG. 5. That is, the pod sends its beacon signal to the serial connector of the computer, which extracts from the beacon signal the Pod ID. The Pod ID is then applied to a mapping function to obtain the address in RAM or ROM of the pod handler routine.

The Pod ID is divided into two fields, a family ID in the high byte and a pod-specific ID in the low byte. Examples of family IDs are:

    ______________________________________                                         Family Type    Family ID                                                       ______________________________________                                         Telephony      0 × 00                                                    Digital Image  0 × 01                                                    LANs           0 × 02                                                    ______________________________________                                    

Examples of specific telephony pod IDs are as follows:

    ______________________________________                                                Pod Type                                                                               Pod ID                                                          ______________________________________                                                POTS    0 × 01                                                           ISDN    0 × 02                                                    ______________________________________                                    

The Pod Parameter bytes are used to relay basic information, such as the hardware revision of the pod, to the software pod handler. These bytes are therefore a local matter to the pod. The checksum is calculated on all bytes in the beacon, i.e. 0×A5+0×5A+Pod ID MSB+Pod ID LSB. Carry is ignored; i.e., the addition is simply performed modulo 0×100.

The beacon signal is always sent with asynchronous framing: 1 start bit, 1 stop bit and no parity. It can either be sent at relatively low predetermined speed (e.g., 9600 baud) or at the pod clock rate. In non-DMA computer systems in which the SCC is serviced entirely by the CPU, beacon bytes should be sent no more frequently than 1 byte per millisecond to avoid overrunning the computer's receiver.

In a preferred embodiment, the beacon signal is sent only once. The beacon signal's first byte should be sent no sooner than 10 ms after the active-to-inactive transition on the HSKo line in order to allow setup time for the computer's CPU or lOP. The beacon signal should be completed within 200 ms after the active-to-inactive transition in order to allow communications to proceed.

The present self-configuring start-up sequence provides for two alternative interface modes, DMA receive mode and polled received mode. DMA received mode uses a TDM (time-division-multiplex) interface, whereas polled received mode uses a packetized interface. The POTS pod of FIG. 2A, for example, might only have the capability passing along to the computer a stream of digitized samples. The ISDN pod of FIG. 2B, on the other hand, might have the capability of interfacing to the host computer using High-Level Datalink control (HDLC) signalling.

Once the computer has received the beacon signal, it sends to the pod a beacon acknowledge sequence. In the case of the packetized interface, the beacon acknowledge sequence prepares the pod to begin receiving packets. The beacon acknowledge sequence consists of twelve bytes as shown in FIG. 3B. The first two bytes consist of pattern 0×5A, 0×A5. The Interface Type byte allows a single pod to support different interface types. For example, the Interface Type byte might assume one value for Macintosh computers and one or more others values for IBM-compatible computers.

The Maximum Data Speed parameter is a 32 bit quantity that indicates the maximum data speed that the computer can support. If the pod can support a data rate less than or equal to this value, then it will respond with the same value in its beacon completion sequence (FIG. 3C), described below. If the pod only supports clock rates greater than this value, it will respond with an error indication in the beacon completion sequence, since the pod is incompatible with the computer.

The Maximum Frame Size parameters indicate the maximum size frame in bytes that the computer can support in each direction on the packetized interface. The pod will respond with the same parameters in its beacon completion sequence. If the pod can support this size or a larger size frame, it will respond with the same value. If the pod can only support a smaller size frame, it will respond with the smaller size. This negotiation of frame size at beacon time determines the maximum size that each side can support. The current frame size can be dynamically adjusted downward from the negotiated settings using a command defined on the packetized interface.

The Checksum of the beacon acknowledge sequence is calculated in the same manner as for the original beacon signal.

Whether the computer and the pod will communicate in polled receive mode or DMA receive mode is determined in accordance with the contents of the Communication Flags Byte, the format of which is illustrated in FIG. 4. Two bits are used to indicate the receive mode of the host computer, and two bits are used to indicate the receive mode expected of the pod, as follows:

    ______________________________________                                         Host Rcv Mode                                                                  00        Host will operate in polled receive mode with                                  length field                                                         01        Host will operate in polled receive mode                                       without length field                                                 10        Host will operate in DMA receive mode                                11        Host can operate in either polled or DMA                                       receive mode                                                         Pod Rcv Mode                                                                   00        Pod is expected to operate in polled receive                                   mode with length field                                               01        Pod is expected to operate in polled receive                                   mode without length field                                            10        Pod is expected to operate in DMA receive                                      mode                                                                 11        Pod can operate in either polled or DMA                                        receive mode                                                         Reserved  These bits are unused and should be ignored                                    by the pod.                                                          ______________________________________                                    

After the pod has received the beacon acknowledge sequence, it sends to the computer a beacon completion sequence of a format illustrated in FIG. 3C. Note that the beacon completion sequence is of identical format as the beacon acknowledge sequence except that a Result Code replaces the Interface Type field. Pod frame size negotiation has been previously described. The pod can modify the receive mode in the beacon completion sequence only in certain cases. If either mode is specified as `11` (`either mode`) in the beacon acknowledge sequence, the pod must make a determination as to which mode will be used and respond with the corresponding bits. Pods which can support both polled and DMA receive modes should favor DMA mode. Also, if either mode is specified as `01` (`with length`), it can be down graded to `00` (`without length`) in the beacon completion sequence.

The result code indicates whether the pod is operating correctly at this point and whether the parameters indicated in the beacon acknowledge sequence can be supported by the pod. If the result code is negative, then an unrecoverable error has occurred. Either a pod self-test failed and the pod is inoperable, or one of the communication parameters is incompatible with the pod. The following result codes are defined:

    ______________________________________                                         Result Code Symbol                                                                          Value   Description                                               ______________________________________                                         noErr         0      No errors                                                 kPrIncompSpeed                                                                              -1      Pod does not support his low of a                                              data rate                                                 kPrIncompRcvMode                                                                            -2      Pod does not support the                                                       indicated receive modes                                   ______________________________________                                    

The Dam Speed indicates the actual pod clock speed that will be provided by the pod to the computer. The computer is then able to set certain timing parameters accordingly.

The foregoing has described the principles, preferred embodiments and modes of operation of the present invention. However, the invention should not be construed as limited to the particular embodiments discussed. Instead, the above-described embodiments should be regarded as illustrative rather than restrictive, and it should be appreciated that variations may be made in those embodiments by workers skilled in the art without departing from the scope of the invention as defined by the following claims. 

What is claimed is:
 1. In a system comprising a computer and an I/O device connected to the computer through a serial interface by a serial cable no more than a few feet in length, a method of identifying the I/O device, comprising the steps of:in response to at least one of a power-up reset signal and a control signal from the computer, sending from the I/O device to the computer a beacon signal comprising a sequence of bytes identifying the I/O device; and in response to the beacon signal, determining within the computer a manner of interaction of the computer with the I/O device.
 2. The method of claim 1 wherein the I/O device is a communications pod, and the beacon signal identifies a type of the communications pod from among possible types of communications pods including telephony and LAN telecommunications pods.
 3. The method of claim 1 wherein the beacon signal is sent with asynchronous framing.
 4. The method of claim 3 wherein the beacon signal is sent at a predetermined low speed.
 5. The method of claim 3 wherein the beacon signal is sent to the computer in accordance with a clock signal provided to the computer from the I/O device.
 6. The method of claim 1 wherein said control signal from the computer comprises a pulse on a hardware control line.
 7. The method of claim 1 wherein said control signal comprises at least one byte of data sent from the computer to the I/O device.
 8. The method of claim 1, comprising the further step of:in response to the beacon signal, sending from the computer to the I/O device a beacon acknowledge signal identifying a type of the serial interface.
 9. The method of claim 8, comprising the further step of:in response to the beacon acknowledge signal, sending from the I/O device to the computer a beacon completion signal.
 10. The method of claim 8, wherein the beacon acknowledge signal further includes configuration information.
 11. The method of claim 10 wherein the beacon acknowledge signal indicates to the I/O device the maximum data speed that the computer can support.
 12. The method of claim 10 wherein the beacon acknowledge signal indicates the maximum frame size, from I/O device to computer, that the computer can support.
 13. The method of claim 10 wherein the beacon acknowledge signal indicates the maximum frame size, from computer to I/O device, that the computer can support.
 14. The method of claim 10 wherein the beacon acknowledge signal indicates a computer receive mode from among possible receive modes including a polled receive mode and a DMA receive mode.
 15. The method of claim 10 wherein the beacon acknowledge signal indicates an expected I/O device receive mode from among possible receive modes including a polled receive mode and a DMA receive mode.
 16. The method of claim 8, comprising the further step of:in response to the beacon acknowledge signal, sending from the I/O device to the computer a beacon completion signal indicating whether an error has occurred, including whether an incompatibility exists between the computer and the I/O device.
 17. The method of claim 16 wherein the beacon completion signal indicates to the computer the actual data speed that the I/O device will use to send data to the computer.
 18. The method of claim 16 wherein the beacon acknowledge signal further indicates a maximum frame size, from I/O device to computer, that both the I/O device and the computer can support.
 19. The method of claim 16 wherein the beacon acknowledge signal further indicates the maximum frame size, from computer to I/O device, that both the I/O device and the computer can support. 